<script type="text/javascript">
	jQuery(function(){
		$('.carousel').carousel()
	});
</script>
<div class="scige_bg">
	<div class="hero-unit text-center">
		<h1><?php echo $dados['capa_titulo'];?></h1>
		<p><?php echo $dados['capa_boas_vindas'];?></p>
	<div id="myCarousel" class="carousel slide">
		<ol class="carousel-indicators">
			<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
			<li data-target="#myCarousel" data-slide-to="1"></li>
			<li data-target="#myCarousel" data-slide-to="2"></li>
		</ol>
		<!-- Carousel items -->
		<div class="carousel-inner">
			<?php $first = true;?>
			<?php foreach($fotos as $item){?>
			<?php if($first){?>
			<div class="item active">
			<?php $first=false;
			}else{?>
			<?php echo '<div class="item">';?>
			<?php }?>
				<?php echo $this->Html->image('fotos_capa/'.$item['FotosCapa']['foto'])?>
				<?php if(!empty($item['FotosCapa']['titulo']) && !empty($item['FotosCapa']['texto'])){?>
				<div class="carousel-caption">
					<h4><?php echo $item['FotosCapa']['titulo'];?></h4>
					<p><?php echo $item['FotosCapa']['texto']?></p>
				</div>
				<?php }?>
			</div>
			<?php }?>
		</div>
		<!-- Carousel nav -->
		<a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
		<a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
	</div>
		<p>
			<a class="btn btn-primary btn-large" href="registro">Cadastre-se</a>
			<a class="btn btn-success btn-large" href="login">&nbsp;&nbsp;&nbsp;&nbsp;Entrar&nbsp;&nbsp;&nbsp;&nbsp;</a>
		</p>
		<p>
			<?php echo $dados['capa_mensagem'];?>
		</p>
	</div>
</div>